package gui;

import java.awt.Color;
import java.awt.Graphics;

public class GUIEdge {
	
	private int x1;
	private int y1;
	private int x2;
	private int y2;
	
	public GUIEdge(GUINode node1, GUINode node2) {
		this.x1 = node1.getPositionX() + GUINode.WIDTH/2;
		this.y1 = node1.getPositionY() + GUINode.HEIGHT/2;
		this.x2 = node2.getPositionX() + GUINode.WIDTH/2;
		this.y2 = node2.getPositionY() + GUINode.WIDTH/2;
		//System.out.println("x1: "+ x1+ ", y1: "+ y1 +"\nx2: "+ x2+ ", y2: "+ y2);
	}

	public void draw(Graphics graphics, GraphScreen graphScreen) {
		graphics.setColor(Color.BLACK);
		graphics.drawLine(x1, y1, x2, y2);
	}

}
